package com.zhiling.www.entity;

import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 股票持仓实体类
 */
@Table(name = "stock_warehouse")
public class Warehouse {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer  wareId; // 仓库每列id
    private Integer  wareUserid; // 仓库每列所属用户id
    private String  wareStockcode; // 仓库每列股票代码
    private String  wareStockname; // 仓库每列股票名称
    private Integer  wareStocknum; // 仓库每列股票数量
    private Integer  wareSellnum; // 仓库每列股票可卖数量
    private Double wareStockcost; // 仓库每列股票成本
    private Double  wareStockprice; // 仓库每列股票现价

    public Warehouse() {
    }

    public Warehouse(Integer wareId, Integer wareUserid, String wareStockcode, String wareStockname, Integer wareStocknum, Double wareStockcost, Double wareStockprice) {
        this.wareId = wareId;
        this.wareUserid = wareUserid;
        this.wareStockcode = wareStockcode;
        this.wareStockname = wareStockname;
        this.wareStocknum = wareStocknum;
        this.wareStockcost = wareStockcost;
        this.wareStockprice = wareStockprice;
    }

    public Integer getWareId() {
        return wareId;
    }

    public void setWareId(Integer wareId) {
        this.wareId = wareId;
    }

    public Integer getWareUserid() {
        return wareUserid;
    }

    public void setWareUserid(Integer wareUserid) {
        this.wareUserid = wareUserid;
    }

    public String getWareStockcode() {
        return wareStockcode;
    }

    public void setWareStockcode(String wareStockcode) {
        this.wareStockcode = wareStockcode;
    }

    public String getWareStockname() {
        return wareStockname;
    }

    public void setWareStockname(String wareStockname) {
        this.wareStockname = wareStockname;
    }

    public Integer getWareStocknum() {
        return wareStocknum;
    }

    public void setWareStocknum(Integer wareStocknum) {
        this.wareStocknum = wareStocknum;
    }

    public Double getWareStockcost() {
        return wareStockcost;
    }

    public void setWareStockcost(Double wareStockcost) {
        this.wareStockcost = wareStockcost;
    }

    public Double getWareStockprice() {
        return wareStockprice;
    }

    public void setWareStockprice(Double wareStockprice) {
        this.wareStockprice = wareStockprice;
    }

    public Integer getWareSellnum() {
        return wareSellnum;
    }

    public void setWareSellnum(Integer wareSellnum) {
        this.wareSellnum = wareSellnum;
    }

    @Override
    public String toString() {
        return "Warehouse{" +
                "wareId=" + wareId +
                ", wareUserid=" + wareUserid +
                ", wareStockcode='" + wareStockcode + '\'' +
                ", wareStockname='" + wareStockname + '\'' +
                ", wareStocknum=" + wareStocknum +
                ", wareStockcost=" + wareStockcost +
                ", wareStockprice=" + wareStockprice +
                '}';
    }
}
